//
//  ZHealhTopTableViewCell.m
//  DoctorFAQs
//
//  Created by zjq on 17/2/21.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZHealhTopTableViewCell.h"
@interface ZHealhTopTableViewCell () {
}

@end

@implementation ZHealhTopTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    if (self) {
        [self initlizeInterface];
    }
    return self;
}
- (void)initlizeInterface {
    _titlelabel = [[UILabel alloc] init];
    _titlelabel.textAlignment = NSTextAlignmentLeft;
    _headImageView = [[UIImageView alloc] init];
    _headImageView.backgroundColor = [UIColor yellowColor];
    _headImageView.layer.cornerRadius = 20*xsIZE;
    _headImageView.layer.masksToBounds= YES;
    [self.contentView addSubview:_titlelabel];
    [self.contentView addSubview:_headImageView];
    [_titlelabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(10*xsIZE);
        make.height.offset(16*ysIZE);
        make.centerY.equalTo(self.contentView);
        make.width.offset(120*xsIZE);
    }];
    [_headImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView).offset(-10*xsIZE);
        make.width.height.offset(40*xsIZE);
        make.centerY.equalTo(self.contentView);
    }];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
